Let's set up the player controls! Click on the Codesters tab to find events.

  • Go to the section of the toolkit and drag Left Key to the bottom of your program.
  • Change the number in the .move_left() command to 10.
  • Change the name in the .move_left() command to ball.

Events let us give a signal (like pressing the left arrow key) that causes an action to happen (like the ball moving left).

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)